package com.aletto.general_store.data.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

public class ServiceOrder extends OrderItem implements MultiItemEntity {

    public static final int COMPLETED = 2, ONGOING = 1; // 1进行中，2已完成

    @Override
    public int getItemType() {
        switch (getStatus()) {
            case 5:
            case 6:  // 6退货中
                return ONGOING;

            case 7: // 7退货成功 10拒绝退款
            case 10:
                return COMPLETED;
        }

        return COMPLETED;
    }

}
